package com.ql.dao.zydj;

import com.ql.pojo.zydj.Zuyuandengji;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ZydjMapper {
// 添加住院病人
    int addPatient(Zuyuandengji patient)throws Exception;
// 查找正在住院病人
    List<Zuyuandengji> qryAllPatient(@Param( "qrycheckInTime" )Date qrycheckInTime,
                                     @Param( "qryUserId" )int userId,
                                     @Param( "qryUserName" )String qryUserName,
                                     @Param( "qryKeshi" )String qryKeshi,
                                     @Param( "start" ) int start,
                                     @Param( "end" ) int end)throws Exception;
// 查询正在住院记录数量
    int qryCoutPatient( @Param( "qrycheckInTime" )Date qrycheckInTime,
                        @Param( "qryUserId" )int userId,
                        @Param( "qryUserName" )String qryUserName,
                        @Param( "qryKeshi" )String qryKeshi)throws Exception;
// 根据病历号查询病人信息
Zuyuandengji qryByUserId(int userId)throws Exception;

    //  查找数据库是否有该ID
    int qryId(int userId)throws Exception;

//  病人转科
    int updKeshi(Zuyuandengji zuyuandengji)throws Exception;
//  病人出院
    int OutHospital(Zuyuandengji zuyuandengji)throws Exception;

}
